// ValidationAspects
// Written by Mike Saunders
// Released under Microsoft Public License (Ms-PL)
using System;
using NUnit.Framework;
using ValidationAspects.PostSharp;

namespace TestValidationAspects.PostSharp
{
	[TestFixture]
	public class TestPropertyValidationAspect
	{
		[Test]
		[ExpectedException(typeof(ArgumentNullException))]
		public void Test_Constructor_throws_for_null_propertyName_param()
		{
			new PropertyValidationAspect(null);
		}

		[Test]
		[ExpectedException(typeof(ArgumentNullException))]
		public void Test_Constructor_throws_for_empty_propertyName_param()
		{
			new PropertyValidationAspect(string.Empty);
		}
	}
}